using System;
using FluentNHibernate.Automapping;

namespace Messenia.Data.Hibernate {
    /// <summary>
    /// This is an example automapping configuration. You should create your own that either
    /// implements IAutomappingConfiguration directly, or inherits from DefaultAutomappingConfiguration.
    /// Overriding methods in this class will alter how the automapper behaves.
    /// </summary>
    class AutomappingConfiguration :DefaultAutomappingConfiguration {
        public override bool ShouldMap (Type type) {
            // specify the criteria that types must meet in order to be mapped
            // any type for which this method returns false will not be mapped.
            return type.Namespace == "Messenia.Data.Models";
        }
        //public override bool IsId (Member member) {
        //    return member.Name == member.DeclaringType.Name + "_ID";
        //}
         
    }
}